﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using LanHomepage.ViewModels;
using BusinessLogic;

namespace LanHomepage.Controllers
{
    public class KontaktController : BaseController
    {
        private readonly IDatabaseHandler _databaseHandler;

        public KontaktController(IDatabaseHandler databaseHandler)
        :base(databaseHandler) {
            _databaseHandler = databaseHandler;
        }

        public ActionResult Kontakt(KontaktViewModel model)
        {
            model.Images = _databaseHandler.GetImagelist();

            return View(model);
        }

    }
}
